package com.ruoyi.licence.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预售许可证列表对象 licence
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
public class Licence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预售许可证id */
    private Long id;

    /** 预售证 */
    @Excel(name = "预售证")
    private String licenceName;

    /** 发证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发证时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueDate;

    /** 绑定楼栋 */
    @Excel(name = "绑定楼栋")
    private String bindingBuilding;

    /** 楼盘id */
    @Excel(name = "楼盘id")
    private Long buildingId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLicenceName(String licenceName) 
    {
        this.licenceName = licenceName;
    }

    public String getLicenceName() 
    {
        return licenceName;
    }
    public void setIssueDate(Date issueDate) 
    {
        this.issueDate = issueDate;
    }

    public Date getIssueDate() 
    {
        return issueDate;
    }
    public void setBindingBuilding(String bindingBuilding) 
    {
        this.bindingBuilding = bindingBuilding;
    }

    public String getBindingBuilding() 
    {
        return bindingBuilding;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("licenceName", getLicenceName())
            .append("issueDate", getIssueDate())
            .append("bindingBuilding", getBindingBuilding())
            .append("buildingId", getBuildingId())
            .toString();
    }
}
